package com.example.flight.generate;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author: leo
 * @date: 2021/7/2
 */
@NoArgsConstructor
@Data
public class CityBean {
    /**
     * Result : true
     * Response : {"Data":[{"Name":"南宁","Type":5,"EName":"Nanning","Spell":"nanning","ShortSpell":"NN","Country":"中国","CountryCode":"CN","Province":"广西","Code":"NNG","CityId":380,"TimeZone":"480","POIID":80172,"CityStatus":3},{"Name":"吴圩国际机场","Type":3,"EName":"Wuxu International Airport","Spell":"wuweiguojijichang","ShortSpell":"WWGJJC","Country":"中国","CountryCode":"CN","Province":"广西","Code":"NNG","Datas":[{"Name":"南宁","Type":5,"EName":"Nanning","Country":"中国","CountryCode":"CN","Province":"广西","Code":"NNG","CityId":380,"TimeZone":"480","POIID":80172,"CityStatus":3}],"POIID":17409}],"Key":"南宁"}
     */

    private boolean Result;
    private ResponseBean Response;

    @NoArgsConstructor
    @Data
    public static class ResponseBean {
        /**
         * Data : [{"Name":"南宁","Type":5,"EName":"Nanning","Spell":"nanning","ShortSpell":"NN","Country":"中国","CountryCode":"CN","Province":"广西","Code":"NNG","CityId":380,"TimeZone":"480","POIID":80172,"CityStatus":3},{"Name":"吴圩国际机场","Type":3,"EName":"Wuxu International Airport","Spell":"wuweiguojijichang","ShortSpell":"WWGJJC","Country":"中国","CountryCode":"CN","Province":"广西","Code":"NNG","Datas":[{"Name":"南宁","Type":5,"EName":"Nanning","Country":"中国","CountryCode":"CN","Province":"广西","Code":"NNG","CityId":380,"TimeZone":"480","POIID":80172,"CityStatus":3}],"POIID":17409}]
         * Key : 南宁
         */

        private String Key;
        private List<DataBean> Data;

        @NoArgsConstructor
        @lombok.Data
        public static class DataBean {
            /**
             * Name : 南宁
             * Type : 5
             * EName : Nanning
             * Spell : nanning
             * ShortSpell : NN
             * Country : 中国
             * CountryCode : CN
             * Province : 广西
             * Code : NNG
             * CityId : 380
             * TimeZone : 480
             * POIID : 80172
             * CityStatus : 3
             * Datas : [{"Name":"南宁","Type":5,"EName":"Nanning","Country":"中国","CountryCode":"CN","Province":"广西","Code":"NNG","CityId":380,"TimeZone":"480","POIID":80172,"CityStatus":3}]
             */

            private String Name;
            private int Type;
            private String EName;
            private String Spell;
            private String ShortSpell;
            private String Country;
            private String CountryCode;
            private String Province;
            private String Code;
            private int CityId;
            private String TimeZone;
            private int POIID;
            private int CityStatus;
            private List<DatasBean> Datas;

            @NoArgsConstructor
            @lombok.Data
            public static class DatasBean {
                /**
                 * Name : 南宁
                 * Type : 5
                 * EName : Nanning
                 * Country : 中国
                 * CountryCode : CN
                 * Province : 广西
                 * Code : NNG
                 * CityId : 380
                 * TimeZone : 480
                 * POIID : 80172
                 * CityStatus : 3
                 */

                private String Name;
                private int Type;
                private String EName;
                private String Country;
                private String CountryCode;
                private String Province;
                private String Code;
                private int CityId;
                private String TimeZone;
                private int POIID;
                private int CityStatus;
            }
        }
    }
}
